<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>字符串、整数、布尔、数组</title>
	</head>
	<body>
		<h1>字符串、整数、布尔、数组</h1>
		<script>
			var str = "javascript";
			console.log(str);
			
			var i = 100;
			console.log(i);
			
			var isMan = true;
			console.log(isMan);
			
			var hobby = ["乒乓球","唱歌","爬山","IT计算机","下象棋"];
			console.log(hobby);//打印数组
			console.log(hobby[0]);//数组的第一个元素
			console.log(hobby[hobby.length-1]);//最后一个元素
		</script>
	</body>
</html>
